﻿using iMES.Entity.SystemModels;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.ComponentModel.DataAnnotations;
using System.Text;

namespace iMES.Entity.DomainModels
{
    public partial class Ware_Location: SysEntity
    {
        /// <summary>
        ///库位主键
        /// </summary>
        [Key]
        [Display(Name = "库位主键")]
        [Column(TypeName = "uniqueidentifier")]
        [Editable(true)]
        [Required(AllowEmptyStrings = false)]
        public Guid LocaId { get; set; }
        ///库位编号
        /// </summary>
        [Display(Name = "库位编号")]
        [MaxLength(100)]
        [Column(TypeName = "varchar(100)")]
        [Editable(true)]
        public string LocaCode { get; set; }
        /// <summary>
        ///库位名称
        /// </summary>
        [Display(Name = "库位名称")]
        [MaxLength(100)]
        [Column(TypeName = "nvarchar(100)")]
        [Editable(true)]
        public string LocaName { get; set; }
        /// <summary>
        ///面积
        /// </summary>
        [Display(Name = "面积")]
        [Column(TypeName = "int")]
        [Editable(true)]
        [Required(AllowEmptyStrings = false)]
        public int LocaSqure { get; set; }
        /// <summary>
        ///最大载重量
        /// </summary>
        [Display(Name = "最大载重量")]
        [Column(TypeName = "int")]
        [Editable(true)]
        [Required(AllowEmptyStrings = false)]
        public int LocaWeight { get; set; }
        /// <summary>
        ///仓库主键(所属仓库）
        /// </summary>
        [Display(Name = "库位名称")]
        [MaxLength(100)]
        [Column(TypeName = "nvarchar(100)")]
        [Editable(true)]
        public string WareId { get; set; }
        /// <summary>
        ///库区主键(所属库区)
        /// </summary>
        [Display(Name = "库位名称")]
        [MaxLength(100)]
        [Column(TypeName = "nvarchar(100)")]
        [Editable(true)]
        public string ReserId { get; set; }
        //// <summary>
        ///状态
        /// </summary>
        [Display(Name = "状态")]
        [MaxLength(100)]
        [Column(TypeName = "varchar(100)")]
        [Editable(true)]
        public string LocaState { get; set; }
        /// <summary>
        ///备注
        /// </summary>
        [Display(Name = "备注")]
        [MaxLength(100)]
        [Column(TypeName = "varchar(100)")]
        [Editable(true)]
        public string LocaNote { get; set; }
    }
}
